/// id : "3d3866b5-557b-4a1d-914f-b2af175b9c6c"
/// userName : "张正飞"
/// token : "fe10d679-b3d1-49ae-a73d-d2958b304b79"
/// appCode : "jx-clivil-servant-assessment"
/// userImg : null
/// defaultPlatform : null
/// tenantId : "WH-JHQ"
/// roleVOList : [{"userId":"03205","roleCode":"base_jx-clivil-servant-assessment","roleName":"绩效考核综合平台基础访问角色","orgPostRoleType":"2"},{"userId":"03205","roleCode":"identity_document_edit","roleName":"纪实本","orgPostRoleType":"1"}]
/// loginPostInfo : {"postId":"3d3866b5-557b-4a1d-914f-b2af175b9c6c","postName":"区委常委、组织部长","orgId":"02.01.0001.0002.0001","orgFullName":null,"orgName":"镜湖区委组织部","orgAlias":"区委组织部","orgType":"0211","isDefault":"1","isRealPost":"","districtLevel":"1120","roleVOList":[{"userId":null,"roleCode":"ba: se_jx-clivil-servant-assessment","roleName":"绩效考核综合平台基础访问角色","orgPostRoleType":"2"},{"userId":null,"roleCode":"identity_document_edit","roleName":"纪实本","orgPostRoleType":"1"}]}
/// orgPostDTOList : null
/// allowAppCodeList : ["jx-clivil-servant-assessment"]
/// permissionMenus : null

class Userinfo {
  Userinfo({
      String? id, 
      String? userName, 
      String? token, 
      String? appCode, 
      dynamic userImg, 
      dynamic defaultPlatform, 
      String? tenantId, 
      List<RoleVOList>? roleVOList, 
      LoginPostInfo? loginPostInfo, 
      dynamic orgPostDTOList, 
      List<String>? allowAppCodeList, 
      dynamic permissionMenus,}){
    _id = id;
    _userName = userName;
    _token = token;
    _appCode = appCode;
    _userImg = userImg;
    _defaultPlatform = defaultPlatform;
    _tenantId = tenantId;
    _roleVOList = roleVOList;
    _loginPostInfo = loginPostInfo;
    _orgPostDTOList = orgPostDTOList;
    _allowAppCodeList = allowAppCodeList;
    _permissionMenus = permissionMenus;
}

  Userinfo.fromJson(dynamic json) {
    _id = json['id'];
    _userName = json['userName'];
    _token = json['token'];
    _appCode = json['appCode'];
    _userImg = json['userImg'];
    _defaultPlatform = json['defaultPlatform'];
    _tenantId = json['tenantId'];
    if (json['roleVOList'] != null) {
      _roleVOList = [];
      json['roleVOList'].forEach((v) {
        _roleVOList?.add(RoleVOList.fromJson(v));
      });
    }
    _loginPostInfo = json['loginPostInfo'] != null ? LoginPostInfo.fromJson(json['loginPostInfo']) : null;
    _orgPostDTOList = json['orgPostDTOList'];
    _allowAppCodeList = json['allowAppCodeList'] != null ? json['allowAppCodeList'].cast<String>() : [];
    _permissionMenus = json['permissionMenus'];
  }
  String? _id;
  String? _userName;
  String? _token;
  String? _appCode;
  dynamic _userImg;
  dynamic _defaultPlatform;
  String? _tenantId;
  List<RoleVOList>? _roleVOList;
  LoginPostInfo? _loginPostInfo;
  dynamic _orgPostDTOList;
  List<String>? _allowAppCodeList;
  dynamic _permissionMenus;

  String? get id => _id;
  String? get userName => _userName;
  String? get token => _token;
  String? get appCode => _appCode;
  dynamic get userImg => _userImg;
  dynamic get defaultPlatform => _defaultPlatform;
  String? get tenantId => _tenantId;
  List<RoleVOList>? get roleVOList => _roleVOList;
  LoginPostInfo? get loginPostInfo => _loginPostInfo;
  dynamic get orgPostDTOList => _orgPostDTOList;
  List<String>? get allowAppCodeList => _allowAppCodeList;
  dynamic get permissionMenus => _permissionMenus;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['userName'] = _userName;
    map['token'] = _token;
    map['appCode'] = _appCode;
    map['userImg'] = _userImg;
    map['defaultPlatform'] = _defaultPlatform;
    map['tenantId'] = _tenantId;
    if (_roleVOList != null) {
      map['roleVOList'] = _roleVOList?.map((v) => v.toJson()).toList();
    }
    if (_loginPostInfo != null) {
      map['loginPostInfo'] = _loginPostInfo?.toJson();
    }
    map['orgPostDTOList'] = _orgPostDTOList;
    map['allowAppCodeList'] = _allowAppCodeList;
    map['permissionMenus'] = _permissionMenus;
    return map;
  }

}

/// postId : "3d3866b5-557b-4a1d-914f-b2af175b9c6c"
/// postName : "区委常委、组织部长"
/// orgId : "02.01.0001.0002.0001"
/// orgFullName : null
/// orgName : "镜湖区委组织部"
/// orgAlias : "区委组织部"
/// orgType : "0211"
/// isDefault : "1"
/// isRealPost : ""
/// districtLevel : "1120"
/// roleVOList : [{"userId":null,"roleCode":"ba: se_jx-clivil-servant-assessment","roleName":"绩效考核综合平台基础访问角色","orgPostRoleType":"2"},{"userId":null,"roleCode":"identity_document_edit","roleName":"纪实本","orgPostRoleType":"1"}]

class LoginPostInfo {
  LoginPostInfo({
      String? postId, 
      String? postName, 
      String? orgId, 
      dynamic orgFullName, 
      String? orgName, 
      String? orgAlias, 
      String? orgType, 
      String? isDefault, 
      String? isRealPost, 
      String? districtLevel, 
      List<RoleVOList>? roleVOList,}){
    _postId = postId;
    _postName = postName;
    _orgId = orgId;
    _orgFullName = orgFullName;
    _orgName = orgName;
    _orgAlias = orgAlias;
    _orgType = orgType;
    _isDefault = isDefault;
    _isRealPost = isRealPost;
    _districtLevel = districtLevel;
    _roleVOList = roleVOList;
}

  LoginPostInfo.fromJson(dynamic json) {
    _postId = json['postId'];
    _postName = json['postName'];
    _orgId = json['orgId'];
    _orgFullName = json['orgFullName'];
    _orgName = json['orgName'];
    _orgAlias = json['orgAlias'];
    _orgType = json['orgType'];
    _isDefault = json['isDefault'];
    _isRealPost = json['isRealPost'];
    _districtLevel = json['districtLevel'];
    if (json['roleVOList'] != null) {
      _roleVOList = [];
      json['roleVOList'].forEach((v) {
        _roleVOList?.add(RoleVOList.fromJson(v));
      });
    }
  }
  String? _postId;
  String? _postName;
  String? _orgId;
  dynamic _orgFullName;
  String? _orgName;
  String? _orgAlias;
  String? _orgType;
  String? _isDefault;
  String? _isRealPost;
  String? _districtLevel;
  List<RoleVOList>? _roleVOList;

  String? get postId => _postId;
  String? get postName => _postName;
  String? get orgId => _orgId;
  dynamic get orgFullName => _orgFullName;
  String? get orgName => _orgName;
  String? get orgAlias => _orgAlias;
  String? get orgType => _orgType;
  String? get isDefault => _isDefault;
  String? get isRealPost => _isRealPost;
  String? get districtLevel => _districtLevel;
  List<RoleVOList>? get roleVOList => _roleVOList;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['postId'] = _postId;
    map['postName'] = _postName;
    map['orgId'] = _orgId;
    map['orgFullName'] = _orgFullName;
    map['orgName'] = _orgName;
    map['orgAlias'] = _orgAlias;
    map['orgType'] = _orgType;
    map['isDefault'] = _isDefault;
    map['isRealPost'] = _isRealPost;
    map['districtLevel'] = _districtLevel;
    if (_roleVOList != null) {
      map['roleVOList'] = _roleVOList?.map((v) => v.toJson()).toList();
    }
    return map;
  }

}

/// userId : null
/// roleCode : "ba: se_jx-clivil-servant-assessment"
/// roleName : "绩效考核综合平台基础访问角色"
/// orgPostRoleType : "2"

class RoleVOList {
  RoleVOList({
      dynamic userId, 
      String? roleCode, 
      String? roleName, 
      String? orgPostRoleType,}){
    _userId = userId;
    _roleCode = roleCode;
    _roleName = roleName;
    _orgPostRoleType = orgPostRoleType;
}

  RoleVOList.fromJson(dynamic json) {
    _userId = json['userId'];
    _roleCode = json['roleCode'];
    _roleName = json['roleName'];
    _orgPostRoleType = json['orgPostRoleType'];
  }
  dynamic _userId;
  String? _roleCode;
  String? _roleName;
  String? _orgPostRoleType;

  dynamic get userId => _userId;
  String? get roleCode => _roleCode;
  String? get roleName => _roleName;
  String? get orgPostRoleType => _orgPostRoleType;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['userId'] = _userId;
    map['roleCode'] = _roleCode;
    map['roleName'] = _roleName;
    map['orgPostRoleType'] = _orgPostRoleType;
    return map;
  }

}

/// userId : "03205"
/// roleCode : "base_jx-clivil-servant-assessment"
/// roleName : "绩效考核综合平台基础访问角色"
/// orgPostRoleType : "2"

class RoleVOList2 {
  RoleVOList2({
      String? userId, 
      String? roleCode, 
      String? roleName, 
      String? orgPostRoleType,}){
    _userId = userId;
    _roleCode = roleCode;
    _roleName = roleName;
    _orgPostRoleType = orgPostRoleType;
}

  RoleVOList2.fromJson(dynamic json) {
    _userId = json['userId'];
    _roleCode = json['roleCode'];
    _roleName = json['roleName'];
    _orgPostRoleType = json['orgPostRoleType'];
  }
  String? _userId;
  String? _roleCode;
  String? _roleName;
  String? _orgPostRoleType;

  String? get userId => _userId;
  String? get roleCode => _roleCode;
  String? get roleName => _roleName;
  String? get orgPostRoleType => _orgPostRoleType;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['userId'] = _userId;
    map['roleCode'] = _roleCode;
    map['roleName'] = _roleName;
    map['orgPostRoleType'] = _orgPostRoleType;
    return map;
  }

}